rank of matrices engineering mathematics